<html>
<head><title>Changing DMI Announcements</title>
<link rel="stylesheet" type="text/css" href="css/Default.css" />
<Script language="javascript" src="data/password.js"></script>
<Script language="javascript" src="exec/login.js"></script>
<noscript>
location.href="noscript.html";
</noscript>
<SCRIPT LANGUAGE="JavaScript">

	window.onload = redir(1);

//name of cookie: 'eomdmf'

</SCRIPT>
</head>
<br>
<center><h1>DMI Newsfeed Editor</h1><center>
<br>
<body>

<center><p style="font-family: Arial; font-size:20px">Current events are displayed in the box below and can be edited.<br> If you would like to add an event, please write it on a new line and then click "Submit Event"</p><center>
Month names allowed: '<b>Jan, Feb, March, April, May, June, July, Aug, Sept, Oct, Nov, Dec</b>'
<form method="POST" action="Replace_NewsFeed.php"> 

<center>
<label for="announcements"><span class="req"></span></label>
<textarea name="Announcements" id="announcements" rows="20" cols="70" style="color:000000; font-family: Arial;border: 2px solid black;"><?php 
$i=0;
$fh = fopen("data/newsfeed.txt", "r"); //Opens newsfeed.txt
while(!feof($fh))
{
	$item[$i]=fgets($fh);
	echo $item[$i]; //Displays Newsfeeds
	$i++;
}
fclose($fh);
?></textarea>
<br><br>
</center>
<center><input id="subbut" type="submit" value="Submit Event"></center>
</form>

<FORM METHOD="LINK" ACTION="index.html">
<INPUT TYPE="submit" VALUE="Home Page">
</FORM>
		
<FORM METHOD="LINK" ACTION="LoggedIn.php">
<INPUT TYPE="submit" VALUE="Return to Main Menu">
</FORM>
</body>
</html>
